#include <stdio.h>
#include <graphics.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#define ge 200
void main()
{
	initgraph(800,600/*,SHOWCONSOLE*/);
	int i,j,x,y;
	int a[200],b[200];
	srand(time(NULL));
	for(i=0;i<ge;i++)
	{
		a[i]=rand()%800;
		b[i]=rand()%600;
	}
	printf("%d  %d\n",a[0],b[0]);
	setfillcolor(RGB(255,255,255));
	while(1)
	{
		for(i=0;i<ge;i++)
		{
			circle(a[i],b[i],1);
		}
		for(i=0;i<ge;i++)
		{
			if(i%3==0)
			{
				a[i]+=3;
			}
			else if(i%2==0)
			{
				a[i]+=2;
			}
			else
			{
				a[i]++;
			}
			if(a[i]>=800)
			{
				a[i]=0;
			}
		}
		Sleep(40);
		cleardevice();
	}
}

